#ifndef __MusicSpectrum_H__
#define __MusicSpectrum_H__

#include "../../paintingclass.h"

NS_DT_BEGIN

class MusicSpectrum : public Scene
{
protected:

    bool init() override;

public:
   
    STATIC_CREATE(MusicSpectrum);  
};
class MusicSpectrumLayer : public Layer
{
protected:
    
    SpriteCanvas * canvas = nullptr;
    //TextSprite *timeText = nullptr;

public:
    STATIC_CREATE(MusicSpectrumLayer);
    uint16_t tcount;
    virtual bool initLayer();
    virtual ~MusicSpectrumLayer();
    void update(float dt);
protected:
    char spectrum[32];
};

NS_DT_END

#endif //__Bilibili_H__
